package com.xiaoy.core.workflow.simple.entity;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.xiaoy.core.workflow.engine.entity.ProcessDefine;

@Entity
@Table(name = "BAS_PROCESS_ProcessDefineSimple")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@SequenceGenerator(sequenceName = "BAS_PROCESS_INSTANCETASK_SEQ", name = "BAS_PROCESS_INSTANCETASK_SEQ", allocationSize = 1)

public class ProcessNodeDefineSimple extends ProcessDefine{

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BAS_PROCESS_INSTANCETASK_SEQ")
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	
}
